
<include file="Public/ace_header" />
    <div class="row">
        <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" style="padding-left: 10px;padding-right: 10px;">
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="user_id"> 发起人 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="user_id" id="user_id" class="width-100" >
                            <php> $user = D(User)->select(); </php>
                            <volist name="user" id="vo">
                            <option value="{$vo['id']}" <if condition ="$model['user_id'] eq $vo['id']"> selected </if>>{$vo['name']}</option>
                            </volist>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="funding_type"> 筹单类型 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="funding_type" id="funding_type" class="width-100" >
                            <php> $funding_type = D(FundingType)->select(); </php>
                            <volist name="funding_type" id="vo">
                            <option value="{$vo['id']}" <if condition ="$model['funding_type'] eq $vo['id']"> selected </if>>{$vo['long_name']}</option>
                            </volist>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="transaction_type"> 交易类型 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="transaction_type" id="transaction_type" class="width-100" >
                             <option value="发起" <if condition ="$model['transaction_type'] eq '发起'"> selected </if> >发起</option>
                             <option value="购买" <if condition ="$model['transaction_type'] eq '购买'"> selected </if> >购买</option>
                             <option value="定制" <if condition ="$model['transaction_type'] eq '定制'"> selected </if> >定制</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="already_num"> 已筹人数 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="已筹人数" id="already_num" name="already_num"  value="{$model['already_num']|default=''}" validate-required="required:请填写已筹人数" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="total_num"> 总人数 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="总人数" id="total_num" name="total_num"  value="{$model['total_num']|default=''}" validate-required="required:请填写总人数" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="customized_price"> 定制价格 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="定制价格" id="customized_price" name="customized_price"  value="{$model['customized_price']|default=''}" validate-required="required:请填写定制价格" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="funding_price"> 众筹价格 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="众筹价格" id="funding_price" name="funding_price"  value="{$model['funding_price']|default=''}" validate-required="required:请填写众筹价格" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="consignment_price"> 代卖佣金 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="代卖佣金" id="consignment_price" name="consignment_price"  value="{$model['consignment_price']|default=''}" validate-required="required:请填写代卖佣金" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="is_budget"> 是否优惠 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="is_budget" id="is_budget" class="width-100" >
                             <option value="是" <if condition ="$model['is_budget'] eq '是'"> selected </if> >是</option>
                             <option value="否" <if condition ="$model['is_budget'] eq '否'"> selected </if> >否</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="is_consignment"> 是否代卖 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="is_consignment" id="is_consignment" class="width-100" >
                             <option value="是" <if condition ="$model['is_consignment'] eq '是'"> selected </if> >是</option>
                             <option value="否" <if condition ="$model['is_consignment'] eq '否'"> selected </if> >否</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="is_togethor"> 是否合单 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="is_togethor" id="is_togethor" class="width-100" >
                             <option value="是" <if condition ="$model['is_togethor'] eq '是'"> selected </if> >是</option>
                             <option value="否" <if condition ="$model['is_togethor'] eq '否'"> selected </if> >否</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="is_allow_funding"> 是否允许用户众筹 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="is_allow_funding" id="is_allow_funding" class="width-100" >
                             <option value="是" <if condition ="$model['is_allow_funding'] eq '是'"> selected </if> >是</option>
                             <option value="否" <if condition ="$model['is_allow_funding'] eq '否'"> selected </if> >否</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="state"> 状态 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="state" id="state" class="width-100" >
                             <option value="待审核" <if condition ="$model['state'] eq '待审核'"> selected </if> >待审核</option>
                             <option value="待支付" <if condition ="$model['state'] eq '待支付'"> selected </if> >待支付</option>
                             <option value="待成功" <if condition ="$model['state'] eq '待成功'"> selected </if> >待成功</option>
                             <option value="待评价" <if condition ="$model['state'] eq '待评价'"> selected </if> >待评价</option>
                             <option value="已完成" <if condition ="$model['state'] eq '已完成'"> selected </if> >已完成</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="lose_time"> 失效时间 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="失效时间" id="lose_time" name="lose_time"  value="{$model['lose_time']|default=''|date='Y-m-d H:i:s',###}" validate-required="required:请填写失效时间" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" readonly=""/>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="name"> 名称 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="名称" id="name" name="name"  value="{$model['name']|default=''}" validate-required="required:请填写名称" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="img"> 图片 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="file" class="width-100" placeholder="图片" id="img" name="img"  value="{$model['img']|default=''}"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
            <if condition="ACTION_NAME eq update">
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="imgShow"></label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                    	<img src="__PUBLIC__/file/{$model['img']}" width="120" height="60" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
            </if>
            
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="detail_wap"> wap详情 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <textarea class="col-xs-12 col-sm-6 width-100" style="padding: 5px 4px;" rows="5" id="detail_wap" name="detail_wap" placeholder="wap详情" validate-required="required:请填写wap详情" >{$model["detail_wap"]|default=""}</textarea>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <script type="text/javascript">var editor = UE.getEditor("detail_wap");</script>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="detail_pc"> pc详情 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <textarea class="col-xs-12 col-sm-6 width-100" style="padding: 5px 4px;" rows="5" id="detail_pc" name="detail_pc" placeholder="pc详情" validate-required="required:请填写pc详情" >{$model["detail_pc"]|default=""}</textarea>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <script type="text/javascript">var editor = UE.getEditor("detail_pc");</script>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="h5_link"> H5 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="H5" id="h5_link" name="h5_link"  value="{$model['h5_link']|default=''}"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="clearfix form-actions">
                <div style="margin-left: 25%;">
                    <button class="btn btn-info btn-sm" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn btn-sm return" type="button">
                        <i class="icon-reply bigger-110"></i>
                        返回
                    </button>
                </div>
            </div>
        </form>
    </div>
<include file="Public/ace_footer" />